// 入口文件
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter);
import router from './router.js'
import app from './App.vue'

import axios from 'axios'; //导入axios
axios.defaults.baseURL = 'http://zprwh9.natappfree.cc/api/v1/pub/';  //配置根域名
Vue.prototype.$ajax = axios;  //把axios挂载到Vue的原型上

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import store from './store/index.js'
var vm=new Vue({
    el:'#app',
    render: c=>c(app),
    router,
    store
})